import App from './App'
import Vue from 'vue'
import './uni.promisify.adaptor'

// 全局引入自定义头部
import navView from './components/navView/navView.vue'
import tabBarView from './components/tabBarView/tabBarView.vue'
import CircleProgress from './components/circle/circle-progress.vue';
Vue.component('CircleProgress', CircleProgress);
Vue.component('navView', navView)
Vue.component('tabBarView', tabBarView)
// 引入全局函数
import globalFunc from './util/globalFunc'
// 将全局函数挂载到Vue原型上
Object.keys(globalFunc).forEach(key => {
	Vue.prototype[`$${key}`] = globalFunc[key]
})


// 定义全局网络请求
import request from '@/util/request.js'; // 
Vue.prototype.$request = request;

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()